<?php
namespace app\home\model;
use think\Model;
use \think\Db;
use \think\session;
class GoodsappraiseModel extends model{
    public function goodsAppraise($data,$app){
        $res = Db::table('goods_appraises')->insert($data);
        if($res){
                Db::table('orders')->where($app)->update(['is_appraises'=>1]);
            return true;
        }else{
            return false;
        }

    }
}